package cubelabs.nexus.dao;

import cubelabs.nexus.entity.GuideInfo;
import java.util.List;
import org.hibernate.criterion.Restrictions;
import org.springframework.stereotype.Repository;


@Repository("guideInfoDAO")
public class GuideInfoDAO extends BaseDAO<GuideInfo, Long>{

	public List<GuideInfo> fetchGuideInfo(long userId) {
		return findByCriteria(Restrictions.eq("user.id", userId));
	}

}
